package org.jeik.data.models;

import java.util.ArrayList;
import java.util.List;

import org.jeik.data.services.ServiceBase.Columns;
import org.jeik.data.services.ServiceBase.Tables;


/**
 * 
 * @author AAsha
 *
 */
@SuppressWarnings("serial")
public class Page implements Model {
	
	private String id;
	private String title;
	private String body;
	private String pageNav;
	
	public Page(){
		
	}
	
	public Page(Page page){
		this.id = page.id;
		this.title = page.title;
		this.body = page.body;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	/**
	 * @return the pageNav
	 */
	public String getPageNav() {
		return pageNav;
	}

	/**
	 * @param pageNav the pageNav to set
	 */
	public void setPageNav(String pageNav) {
		this.pageNav = pageNav;
	}
	
	
	/**
	 * 
	 */
	@Override
	public String getTableName() {
		return Tables.pages.name();
	}
	
	/**
	 * 
	 */
	@Override
	public List<String> getFields() {
		
		List<String> fields = new ArrayList<String>();
		
		fields.add(Columns.ID.name());
		fields.add(Columns.TITLE.name());
		fields.add(Columns.BODY.name());
		
		return fields;
	}

}
